"""demo01 URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path

from class_app import views,model_views

urlpatterns = [

    path('admin/', admin.site.urls),
    # 新URL方式增删改查班级信息
    path('classes/', views.classes),
    path('add_class/', views.add_class),
    path('edit_class/', views.edit_class),
    path('del_class/', views.del_class),
    # 模态对话框方式增删改查班级信息
    path('model_add_class/', model_views.model_add_class),
    path('model_edit_class/', model_views.model_edit_class),
    path('model_del_class/', model_views.model_del_class),

]
